package vip.liux.backend.infrastructure.textTemplate.spi;

import jakarta.annotation.Nullable;
import jakarta.validation.constraints.NotBlank;

import java.util.Locale;
import java.util.Map;

public interface TemplateRenderingEngine {

    String render(@NotBlank String template, @Nullable Map<String, Object> model, @Nullable Locale locale, @Nullable Map<String, Object> globalContext);

    boolean supports(String renderEngine);
}
